One, form part (index.html)
The first is a form Fill page, with a div with ID autosavemsg to display the return information, and a checkbox with an ID of draft_autosave to determine whether to save automatically, and then name the textarea ID as
Sometimes you need to output all the files in a folder on the server, such as backing up a website, and use the following PHP function. The function library code PHPZip is: (copy the following code to save it for calling )? ClassPHPZip {Private $
In OCR text recognition software ABBYY FineReader, the recognition results can be saved to a file, sent to another application, copied to the Clipboard, or sent by e-mail. You can also save the OCR results in the PPTX format. This article details
/**
* Zip file Creation class.
* Makes zip files.
*
* @access Public
*/
Class ZipFile
{
/**
* Array to store compressed data
*
* @public Array $datasec
*/
Public $datasec = Array ();
A php package a group of files into a zip class.
This php class can add files to the array one by one, and finally package the added files into zip files.
/* $ Id: zip. lib. php, v 1.1 2004/02/14 15:21:18 anoncvs_tusedb Exp $ */
Php package a group of files as a zip package class
/**
* Zip file creation class.
* Makes zip files.
*
* @ Access public
*/
Class zipfile
{
/**
* Array to store
This feature is not difficult to implement, first we have to find the path to this file. Then in the introduction of the third party class Phpzip this can be found on the Internet, I will post him out. A small partner in need can learn from it.
Function: Compress the file into zip, or rar compressed package. Suffix names can be customized.
How to: Instantiate first, then pass the argument. Two parameters. First an array of your file addresses. The second is the absolute address of the
Use of PHPZip
Class PHPZip
{
Function Zip ($ dir, $ zipfilename)
{
If (@ function_exists ('gzcompress '))
{
$ Curdir = getcwd ();
If (is_array ($ dir ))
{
$ Filelist = $ dir;
}
1. Download the zip. php tool class that I have prepared, decompress it, and put the files in the directory. I put the files in the include folder under the virtual directory.2. Add the following code to your php file:Copy codeThe Code is as follows:
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.